package com.ocp.socket.busi.device.mapper;

import com.ocp.socket.busi.device.bean.DeviceInfo;
import com.ocp.socket.busi.device.bean.LineInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : lichong
 * @description :
 * @Date Create in 13:28 2019/3/9
 * @Modified By :
 **/
@Mapper
public interface DeviceInfoMapper {

    /**
     * 根据设备编码获取设备信息
     * @param snNo  设备编码
     * @return
     */
    DeviceInfo getDeviceInfoBySnNo(String snNo);

    /**
     * 根据sn码获取线路信息
     * @param snNo  sn码
     * @return
     */
    List<LineInfo> getLineInfoList(String snNo);

    String getSnnoByHallIdAndTyp(@Param("milkHallId") Integer milkHallId,@Param("typeCode") String typeCode);

}
